import request from '@/utils/request'

// 查询校区业绩列表
export function listPerform (query) {
  return request({
    url: '/manager/perform/list',
    method: 'get',
    params: query
  })
}

export function getReportByDeptId (query) {
  return request({
    url: '/manager/perform/getReportByDeptId',
    method: 'get',
    params: query
  })
}
export function getChannelReportByParams (query) {
  return request({
    url: '/manager/perform/getChannelReportByParams',
    method: 'get',
    params: query
  })
}

// 查询校区业绩详细
export function getPerform (deptId,year) {
  return request({
    url: '/manager/perform/' + deptId + '/' + year,
    method: 'get'
  })
}

// 新增校区业绩
export function addPerform (data) {
  return request({
    url: '/manager/perform',
    method: 'post',
    data: data
  })
}

// 修改校区业绩
export function updatePerform (data) {
  return request({
    url: '/manager/perform',
    method: 'put',
    data: data
  })
}

// 删除校区业绩
export function delPerform (deptId,year) {
  return request({
    url: '/manager/perform/' + deptId + '/' + year,
    method: 'delete'
  })
}


// 删除校区业绩
export function getScheudleStatis (query) {
  return request({
    url: '/manager/userSchedule/getScheudleS',
    method: 'get',
    params: query
  })
}

// 删除校区业绩
export function getCardRemain (query) {
  return request({
    url: '/manager/studentCard/getCardRemain',
    method: 'get',
    params: query
  })
}

export function getAttenceRank (query) {
  return request({
    url: 'manager/student/getAttenceRank',
    method: 'get',
    params: query
  })
}
